package yunjiao.apijson.autoconfigure;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;
import yunjiao.apijson.extension.orm.DataSourceContextHolder;

/**
 * 多数据源
 *
 * @author yangyunjiao
 */
public class MultipleDataSource extends AbstractRoutingDataSource {
    @Override
    protected Object determineCurrentLookupKey() {
        return DataSourceContextHolder.getDataSourceType();
    }
}
